//
//  FGOSSManager.h
//  lite
//
//  Created by feige on 2022/10/24.
//

#import <Foundation/Foundation.h>

@interface FGOSSConfigModel : NSObject
@property (nonatomic, copy) NSString *region;///< "oss-cn-hangzhou",
@property (nonatomic, copy) NSString *accessKeyId;///< "STS.NTF2ByvWA3qKQrfRNVLSkioFL",
@property (nonatomic, copy) NSString *accessKeySecrets;///< "2PZdQLqndVQZzE16Y4peXy36Vj1PB89EvtB6CPyDD6d4",
@property (nonatomic, copy) NSString *stsToken;///< "CAIS9wF1q6Ft5B2yfSjIr5fzefjNm4hghLOgU1TXtk4DQNxHhqrtrjz2IHlIf3dqAusZs/k1mmBR6PwalqVJQppiXlfqYMF36ZcPOO46wyKZ6aKP9rUhpMCPOwr6UmzWvqL7Z+H+U6muGJOEYEzFkSle2KbzcS7YMXWuLZyOj+wMDL1VJH7aCwBLH9BLPABvhdYHPH/KT5aXPwXtn3DbATgD2GM+qxsmtPjvnpzBs0CA1wOll75InemrfMj4NfsLFYxkTtK40NZxcqf8yyNK43BIjvwv0Pcao2yc4YzAWQcBukvca/Cw6NRqKxRiaKUwHKlHvHsOO3qBWWS5GoABOeuAcFhZrqvOYFV7hbD1nEcBrMVHU7vL+36eRi0saft+U9qq2V3v5Ih7FMwUbg9WZVSUs8EpTq5+6e1oe3n0WlnSHn5X82YPGHGl1QW3oelhCRt3NKDE6YNzcX7CdUTpDe/8nlSM52isO0T1/GMl/vFQ4nhrIY0FknhQMpqPVPU=",
@property (nonatomic, copy) NSString *bucket;///< "febookpic",
@property (nonatomic, copy) NSString *imDirName;///< "febookim"
@end

@interface FGOSSManager : NSObject

+ (instancetype)shared;

/**
 * 上传图片
 */
- (void)uploadImage:(UIImage *)image
            success:(void(^)(BOOL succeed, NSString *msg, NSString *url))success
            failure:(void(^)(void))failure;

/**
 * 上传文件
 */
- (void)uploadFlieData:(NSData *)fileData
              fileName:(NSString *)fileName
               success:(void(^)(BOOL succeed, NSString *msg, NSString *url))success
               failure:(void(^)(void))failure;

@end
